/*
 * @Author: 姚沈阳 11500793+yao-shenyang@user.noreply.gitee.com
 * @Date: 2023-10-18 11:32:36
 * @LastEditors: 姚沈阳 11500793+yao-shenyang@user.noreply.gitee.com
 * @LastEditTime: 2023-10-18 15:47:41
 * @FilePath: \uni-preset-vue-vite-ts\src\modules\home.js
 * @Description: 
 * qq1908552310
 */
// modules/home.js
import { defineStore } from 'pinia';
export const useHomeStore = defineStore('home', {
    state: () => {
        return { count: [] };
    },
    // 也可以这样定义
    // state: () => ({ count: 0 })
    actions: {
        async getList() {
            const res = await uniCloud.callFunction({
                name: "goingout",
            })
            this.count = res.result.data
        }
    },

});